package com.ms.mishitong.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ms.mishitong.VO.UserVO;
import com.ms.mishitong.entity.Follow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FlowMapper extends BaseMapper<Follow> {
    @Select("select * from tb_follow where follow_user_id = #{id}")
    List<Follow> SelectByFollowUserId(Long id);

    List<Long> getFollows(Long UserId);


    Follow Select(Follow follow);

    void Delete(Follow follow);

    List<Long> queryMutualByCursor(@Param("userId") Long userId,
                                   @Param("cursor") Long cursor,
                                   @Param("pageSize") Integer pageSize);

    Follow hasMoreMutual(Long userId, Long cursor);
}
